]> dgit.raspbian.org Git - gnome-shell.git/commit
App Picker: Prevent drag if favorite-apps is locked.
authorMurray Cumming <murrayc@murrayc.com>
Tue, 27 Jan 2015 21:10:45 +0000 (22:10 +0100)
committerMurray Cumming <murrayc@murrayc.com>
Wed, 28 Jan 2015 13:15:51 +0000 (14:15 +0100)
commit1da9546c40b9f4480e15e8d830e5702b07a1cd65
tree130f2c854697552c1ac0981c9edfe53f797f1caf
parente69cc20fc7dc10b9c04c3a0224c01c8cd23671cf
App Picker: Prevent drag if favorite-apps is locked.

Because there's nothing (in single-monitor setups) that could
take the drop in this case.

* js/ui/appDisplay.js:
  AllView._loadApps(), FrequentView._loadApps(): Pass
  an isDraggable parameter when creating the AppIcons,
  depending on whether the favorite-apps key is locked.
  AppIcon._init(): Check for isDraggable in the params and
  do not create _draggable if it was specified, to prevent a
  drag from starting.
  AppIcon.popupMenu(): Check _draggable before trying to call
  fakeRelease on it.
* js/ui/dash.js: Dash._createAppItem(): Check AppIcon._draggable
  before trying to connect to its signals.

https://bugzilla.gnome.org/show_bug.cgi?id=741325
js/ui/appDisplay.js
js/ui/dash.js